import request from "@/utils/request";

const User = {
	login: data => request({ url: "/api/user/login", method: "post", data }),
	getInfo: token => request({ url: "/api/user/getInfo", method: "get", params: { token } }),
	logout: () => request({ url: "/api/user/logout", method: "post" })
};

export default User;
